

    \filetitle{shockdb}{Create model-specific database with random shocks}{model/shockdb}

	\paragraph{Syntax}

Input arguments marked with a \texttt{\textasciitilde{}} (tilde) sign
may be omitted.

\begin{verbatim}
D = shockdb(M,~D,Range,~NDraw,...)
\end{verbatim}

\paragraph{Input arguments}

\begin{itemize}
\item
  \texttt{M} {[} model {]} - Model object.
\item
  \texttt{D} {[} struct \textbar{} empty {]} - Input database to which
  shock time series will be added; if omitted or empty, a new database
  will be created; if \texttt{D} already contains shock time series, the
  data generated by \texttt{shockdb} will be added up with the existing
  data.
\item
  \texttt{Range} {[} numeric {]} - Date range on which the shock time
  series will be generated and returned; if \texttt{D} already contains
  shock time series going before or after \texttt{Range}, these will be
  clipped down to \texttt{Range} in the output database.
\item
  \texttt{NDraw} {[} numeric {]} - Number of draws (i.e.~columns)
  generated for each shock; if omitted, the number of draws is equal to
  the number of alternative parameterizations in the model \texttt{M},
  or to the number of columns in shock series existing in the input
  database \texttt{D}.
\end{itemize}

\paragraph{Output arguments}

\begin{itemize}
\tightlist
\item
  \texttt{D} {[} struct {]} - Database with shock time series added.
\end{itemize}

\paragraph{Options}

\begin{itemize}
\tightlist
\item
  \texttt{\textquotesingle{}randFunc=\textquotesingle{}} {[}
  \texttt{@lhsnorm} \textbar{} \texttt{@randn} \textbar{}
  \emph{\texttt{@zeros}} {]} - Function used to generate random draws
  for new shock time series; if \texttt{@zeros}, the new shocks will
  simply be filled with zeros; the random numbers will be adjusted by
  the respective covariance matrix implied by the current model
  parameterization.\%
\end{itemize}

\paragraph{Description}

\paragraph{Example}


